#include<stdio.h>
void Dang(int h,int m)
{
    int i = 0;
    for(i=0;i<=h;i++)
    {
        if(m==0&&i==h)
        {
            break;
        }
        printf("Dang");
    }
}
int main()
{
    char h1 = 0;
    char h2 = 0;
    char m1 = 0;
    char m2 = 0;
    scanf("%c%c:%c%c",&h1,&h2,&m1,&m2);
    int h = ((h1-'0')*10+(h2-'0'));
    int m = ((m1-'0')*10+(m2-'0'));
    if(h<=12)
    {
        printf("Only %c%c:%c%c.  Too early to Dang.",h1,h2,m1,m2);
    }
    else
    {
        Dang(h-12,m);
    }
    return 0;
}